package com.qiaofang.applet.service.property.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.qiaofang.applet.common.base.BaseDomain;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * @Author: youqing.yang
 * @Create: 2021/05/12 17:55
 * @Description:
 **/
@Document(collection = "property_property_roles")
@Data
public class PropertyRoles extends BaseDomain {

    @ApiModelProperty("角色人记录Uuid")
    private String roleSyncUuid;

    @ApiModelProperty("房源唯一UUID")
    private String propertyUniqueUuid;

    @ApiModelProperty("房源UUID")
    private String propertyUuid;

    @ApiModelProperty("录入人(首次录入人)Uuid")
    private String inputEmployeeUuid;

    @ApiModelProperty("维护人(房源归属人1)Uuid")
    private String guardianEmployeeUuid;

    @ApiModelProperty("实勘人(实勘方)Uuid")
    private String surveyEmployeeUuid;

    @ApiModelProperty("委托人(归属人2)Uuid")
    private String promotionEmployeeUuid;

    @ApiModelProperty("签赔方")
    private String entrustIndemnityEmployeeUuid;

    @ApiModelProperty("钥匙人(钥匙方)Uuid")
    private String keyEmployeeUuid;

    @ApiModelProperty("VR上传人账号Uuid")
    private String vrUploaderEmployeeUuid;

    @ApiModelProperty("视频上传人账号Uuid")
    private String videoUploaderEmployeeUuid;

    @ApiModelProperty("是否删除")
    private Boolean deleted;

    @ApiModelProperty("最后解析日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date lastSyncDate;
}
